home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 April / Disc 2 / PCUSER0402D2.iso / software / utils / files / wincron.exe / data1.cab / Sample_Scripts / Include / string.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-20  |  1.5 KB  |  61 lines

  1. #ifndef _STRINGH
  2. #define _STRINGH
  3.  
  4. #pragma push_safeptr
  5.  
  6. #define _need_size_t
  7. #define _need_NULL
  8.  
  9. #include "sys/stdtypes.h"
  10.  
  11. #undef _need_NULL
  12. #undef _need_size_t
  13.  
  14. #ifndef _MEMCPY_
  15. #define _MEMCPY_
  16. void *memcpy(void * dst, const void * src, size_t n);
  17. #endif
  18.  
  19. void *memmove(void * dst, const void * src , size_t n);
  20. char *strcpy(char * dst, const char * src);
  21. char *strncpy(char * dst, const char * src, size_t n);
  22. char *strcat(char * s1, const char * s2);
  23. char *strncat(char * s1, const char *s2, size_t n);
  24. int memcmp(const void * s1, const void * s2, size_t n);
  25. int strcmp(const char * s1, const char * s2);
  26. int strcoll(const char * s1, const char * s2);
  27. int strncmp(const char * s1, const char *s2, size_t n);
  28. size_t strxfrm(char *dst, const char * src, size_t n);
  29. void *memchr(const void *s, int c, size_t n);
  30. char *strchr(const char *s, int c);
  31. size_t strcspn(const char *s, const char *reject);
  32. char *strpbrk(const char *s, const char *accept);
  33. char *strrchr(const char *s, int c);
  34. size_t strspn(const char *s, const char *accept);
  35. char *strstr(const char *haystack, const char *needle);
  36. char *strtok(char *s, const char *delim);
  37. void *memset(void *s, int c, size_t n);
  38. char *strerror(int n);
  39. size_t strlen(const char *s);
  40.  
  41.  
  42. /* non standard stuff */
  43. char * strrev(char * s);
  44.  
  45. #if defined(_SUNOS) && !defined(_EiC)
  46. void bcopy(char *from, char *to, int length);
  47. #define memmove(x,y,z)  bcopy((y),(x),(z))
  48. #endif
  49.  
  50.  
  51. #pragma pop_ptr
  52.  
  53. #endif /* _STRINGH */
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.